#include <iostream>
using namespace std;
int main()
{
    cout<<"char类型所占字节大小为"<<sizeof(char)<<endl;
    cout<<"bool类型所占字节大小为"<<sizeof(bool)<<endl;
    cout<<"signed char类型所占字节大小为"<<sizeof(signed char)<<endl;
    cout<<"unsigned char类型所占字节大小为"<<sizeof(unsigned char)<<endl;
    cout<<"short类型所占字节大小为"<<sizeof(short)<<endl;
    cout<<"unsigned short类型所占字节大小为"<<sizeof(unsigned short)<<endl;
    cout<<"int类型所占字节大小为"<<sizeof(int)<<endl;
    cout<<"unsigned int类型所占字节大小为"<<sizeof(unsigned int)<<endl;
    cout<<"long类型所占字节大小为"<<sizeof(long)<<endl;
    cout<<"unsigned long类型所占字节大小为"<<sizeof(unsigned long)<<endl;
    cout<<"float类型所占字节大小为"<<sizeof(float)<<endl;
    cout<<"double类型所占字节大小为"<<sizeof(double)<<endl;
    cout<<"long double类型所占字节大小为"<<sizeof(long double)<<endl;

    return 0;
}